<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Removes files from the collections</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongogridfs.put.html">MongoGridFS::put</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongogridfs.storebytes.html">MongoGridFS::storeBytes</a></div>
 <div class="up"><a href="class.mongogridfs.html">MongoGridFS</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongogridfs.remove" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoGridFS::remove</h1>
  <p class="verinfo">(PECL mongo &gt;=0.9.0)</p><p class="refpurpose"><span class="refname">MongoGridFS::remove</span> &mdash; <span class="dc-title">Removes files from the collections</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongogridfs.remove-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>MongoGridFS::remove</strong></span>
    ([ <span class="methodparam"><span class="type">array</span> <code class="parameter">$criteria</code><span class="initializer"> = array()</span></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code><span class="initializer"> = array()</span></span>
  ]] )</div>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongogridfs.remove-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>

      <em><code class="parameter">query</code></em>
     </dt>

     <dd>

      <p class="para">
       The filename or criteria for which to search.
      </p>
     </dd>

       
    
     <dt>

      <em><code class="parameter">options</code></em>
     </dt>

     <dd>

      <p class="para">
       Options for the remove.  Valid options are:
      </p>
      <ul class="itemizedlist">
       <li class="listitem"><p class="para"><em>&quot;w&quot;</em></p><p class="para">See <a href="mongo.writeconcerns.html" class="link">WriteConcerns</a>. The default value for <a href="class.mongoclient.html" class="classname">MongoClient</a> is <em>1</em>.</p></li>
      </ul>
     </dd>

       
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongogridfs.remove-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns if the removal was successfully sent to the database.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongogridfs.put.html">MongoGridFS::put</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongogridfs.storebytes.html">MongoGridFS::storeBytes</a></div>
 <div class="up"><a href="class.mongogridfs.html">MongoGridFS</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
